﻿<phone:PhoneApplicationPage 
    x:Class="SLRTHackathon.Views.WelcomePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
      
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Panorama Name="CarHelperPanorama" Title="Auto Mobile">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="/SLRTHackathon;component/Resources/Images/wallpaper2.jpg"/>
            </controls:Panorama.Background>
            <!--Panorama item one-->
            <controls:PanoramaItem Header="Welcome">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="70" />
                    </Grid.RowDefinitions>
                    <StackPanel Orientation="Vertical" Grid.Row="0">
                        <TextBlock Text="Select Car" Foreground="Orange"/>
                        <StackPanel Name="CarsStackPanel" Orientation="Vertical">
                            <Button Content="Car1"/>
                            <Button Content="Car2"/>
                        </StackPanel>

                        <Button Content="+" Click="GoToAddButton_Click" BorderBrush="Transparent" HorizontalAlignment="Right" Height="100" Width="100" FontFamily="Arial" FontSize="50"/>
                        
                       
                        
                        
                        <TextBlock Text="Car Dock" Foreground="Orange"/>
                        <Button Content="Car Dock" Click="CarDockButton_Click" BorderBrush="RosyBrown">
                            <Button.Background>
                                <LinearGradientBrush  EndPoint="0.6,1" StartPoint="0.4,0">
                                    <GradientStop Color="#FFD1360D" Offset="0"/>
                                    <GradientStop Color="#C9693410" Offset="1"/>
                                </LinearGradientBrush>
                            </Button.Background>
                        </Button>
                    </StackPanel>
                    <StackPanel Grid.Row="1" HorizontalAlignment="Right">
                        <Button Name="SettingsBtn" Click="SettingsBtn_Click" BorderThickness="0,0,0,0" >
                            <Button.Content>
                                <Image Source="/SLRTHackathon;component/Resources/Images/Settings.png" Height="50" Width="50"/>
                            </Button.Content>
                        </Button>
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item two-->
            <controls:PanoramaItem Header="Add Item">
                <Grid>
                    <StackPanel>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>

                            <TextBlock Name="NameTextBlock" Text="Identification Name: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0"/>
                            <TextBox Name="NameTextBox" Grid.Row="0" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="BrandTextBlock" Text="Brand: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0"/>
                            <TextBox Name="BrandTextBox" Grid.Row="1" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="ModelTextBlock" Text="Model: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0"/>
                            <TextBox Name="ModelTextBox" Grid.Row="2" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="CIDTextBlock" Text="CID: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0"/>
                            <TextBox Name="CIDTextBox" Grid.Row="3" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="ImageTextBlock" Text="Image: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0"/>
                            <TextBox Name="ImageTextBox" Grid.Row="4" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="YearOfFabricationBlock" Text="Year of fabrication: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0"/>
                            <TextBox Name="YearOfFabricationTextBox" Grid.Row="5" Grid.Column="1" Height="50" FontSize="11"/>
                            <TextBlock Name="VignetteEndDateTextBlock" Text="Vignette end date: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0"/>
                            <toolkit:DatePicker x:Name="VignetteEndDateDatePicker" Grid.Row="6" Grid.Column="1" Height="50" FontSize="11" />
                            <TextBlock Name="DaysBeforeEndDateTextBlock" Text="Days before end date notification: " HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="7" Grid.Column="0"/>
                            <TextBox Name="DaysBeforeEndDateTextBox" Grid.Row="7" Grid.Column="1" Height="50" FontSize="11"/>
                        </Grid>
                        <Button Content="+" Click="AddCarButton_Click" BorderBrush="Transparent" HorizontalAlignment="Right" Height="100" Width="100" FontFamily="Arial" FontSize="48"/>                        
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama item three-->
            <controls:PanoramaItem Header="View Notifications">
                <Grid>
                    <StackPanel Name="ViewNotificationsStackPanel">
                        
                    </StackPanel>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
